import $http from '../utils/request.js'

export function getActivityList(query) {
	return $http.httpRequest({
		url: '/activities/lists',
		data: query
	})
}

export function getActivityInfo(id, query) {
	return $http.httpRequest({
		url: '/activities/' + id,
		data: query
	})
}

export function signUp(query) {
	return $http.httpRequest({
		url: '/activities/signup',
		methods:'POST',
		headers: 'application/json',
		data: query
	})
}